package gek.uni.aspirant.ocl.rcp.command.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;

public class OclToPrologCodeHandler extends AbstractHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    // String expression =
    // "self.children->select(ch | ch.oclIsUndefined())->size()>2 and self.children->isEmpty() and self.children->size()=2 and self.size>3";
//    String expression = "self.children->isEmpty() or self.size>3";
    // expression = "self.children->select(ch | ch.oclIsUndefined())->size()>2";
//    OclInvariantToPrologParser parser = new OclInvariantToPrologParser();
//    parser.setStringToParse(expression);
//    try {
//      PrologGeneratorResult result = parser.parse();
//      System.out.println(result.getCodeGeneratorPair().getCode());
//    } catch (Exception e) {
//      e.printStackTrace();
//    }
    
    //TODO 
    System.out.println("Do NOTHING");
    return null;

  }

}
